<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "" "">
<f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:w="http://www.apusic.com/jsf/widget" xmlns:layout="http://www.apusic.com/jsf/layout"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:ajax="http://www.apusic.com/jsf/ajax"
	renderKitId="AJAX" xmlns:epm="http://www.bp.com.cn/epm">
	<w:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<w:stylesheet src="/css/kmp4.css" type="text/css"></w:stylesheet>
		<w:script src="/javascript/k4.js" type="text/javascript" language="UTF-8"></w:script>
		<script>
			//<![CDATA[
			function show(){
             var r=postGrid.getSelectionModel().getSelected();
             var id=r.get('unid');
             var url="#{facesContext.externalContext.requestContextPath}/modules/system/webadmin/showPosition.faces?id="+id;
             addCenterLayoutTab('showPositonTab','查看岗位', url);
    	   }
    	   //]]>
    	</script>
	</w:head>
	<w:page title="岗位信息一览">
		<layout:panel border="false" autoHeight="true" header="false" styleClass="k4-form">
			<layout:panel border="false" autoHeight="true" autoWidth="true" styleClass="k4-view-toolbar">
				<w:form>
					<w:toolBar>
						<w:button label="新建" image="/images/create.gif" id="createPost" immediate="true"
							onclick="javascript:addCenterLayoutTab('addPositionTab','新建岗位','#{facesContext.externalContext.requestContextPath}/modules/system/addPosition.faces');" />
						<w:separator />
						<w:button label="编辑" image="/images/edit.gif" id="editPost" />
					</w:toolBar>
				</w:form>
			</layout:panel>
			<layout:panel>
				<w:form>
					<layout:panelGrid width="100%" columns="4" cellpadding="0" cellspacing="1"
						styleClass="k4-view-searchForm">
						<layout:cell styleClass="k4-form-fieldtitle" style="height: 0px;">
						</layout:cell>
						<layout:cell styleClass="k4-form-fieldvalue" style="height: 0px;">
						</layout:cell>
						<layout:cell styleClass="k4-form-fieldtitle" style="height: 0px;">
						</layout:cell>
						<layout:cell styleClass="k4-form-fieldvalue" style="height: 0px;">
						</layout:cell>
						<layout:cell styleClass="k4-form-fieldtitle">
							<h:outputText value="岗位名称"></h:outputText>
						</layout:cell>
						<layout:cell styleClass="k4-form-fieldvalue">
							<w:textField id="positionName" jsvar="positionNameJsvar" styleClass="k4-form-textfield"></w:textField>
						</layout:cell>
						<layout:cell colspan="2" styleClass="k4-form-triple-fieldvalue">
							<layout:panelGrid>
								<layout:cell>
									<w:button id="search" label="搜索"
										image="#{facesContext.externalContext.requestContextPath}/images/search.gif" />
								</layout:cell>
								<layout:cell>
									<w:button id="reset" label="重置"
										image="#{facesContext.externalContext.requestContextPath}/images/clear.gif" />
								</layout:cell>
							</layout:panelGrid>
						</layout:cell>
					</layout:panelGrid>
				</w:form>
			</layout:panel>
			<w:dataGrid id="postGrid" toolBarPosition="bottom" rows="10" paged="true" forceFit="true"
				border="false" styleClass="k4-view-datagrid" showRowNumber="true" autoHeight="true"
				singleSelect="true" selectionModel="#{selectionModel.checkbox}" jsvar="postGrid"
				ondblclick="javascript:show();">
				<w:outputColumn id="unid" header="id" hidden="true"></w:outputColumn>
				<w:outputColumn id="name" header="岗位名称" width="122"></w:outputColumn>
				<w:outputColumn id="postGrade" header="岗位职级" width="100"></w:outputColumn>
				<!--<w:outputColumn id="postType" header="岗位类别" width="100"></w:outputColumn>
				-->
				<w:outputColumn id="enable" header="是否有效" width="80" converter="positionConverter"></w:outputColumn>
			</w:dataGrid>
		</layout:panel>
	</w:page>
</f:view>